<%--
 - Copyright (c) 2009-2011 ETCORE Labs. All rights reserved. 
 - 
 - This software is the confidential and proprietary information of ETCORE Labs. 
 - You shall not disclose such confidential information and shall use it only
 - in accordance with the terms of the license agreement you entered into
 - with ETCORE Labs.
 -
 - Support can be obtained from support forums at:
 - http://www.etcore.com/
 -
 - @author: ETCORE GroupTalk developers
 -
 --%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://jakarta.apache.org/taglibs/core" prefix="c"%>
<%@ taglib uri="http://www.etcore.com/grouptalk" prefix="grouptalk"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<html>
<head>
<title><c:out value='${targetUser.userName }' />-<c:out
	value='${context.title }' /></title>
<link rel="stylesheet" href="/group/css/styles.css" type="text/css">
<script> 
function switchConnection(src)
{
	 var childFrame=document.getElementById("childFrame");

	 childFrame.src='/group/'+src 
	 
}
 
function loadChildFrame(){
	 var iframeid=document.getElementById("childFrame"); //iframe id
	  if (document.getElementById){
	   if (iframeid && !window.opera){
	    if (iframeid.contentDocument && iframeid.contentDocument.body.offsetHeight){
	     iframeid.height = iframeid.contentDocument.body.offsetHeight+10;
	    }else if(iframeid.Document && iframeid.Document.body.scrollHeight){
	     iframeid.height = iframeid.Document.body.scrollHeight+10;
	    }
	   }
	  }
 }</script>
</head>
<body bottomMargin=0 leftMargin=10 topMargin=0 rightMargin=10
	marginheight="0">
<c:import url="/group/ui-component/divdialog/divdialog.html" />
<table width="100%" border="0" cellpadding="0" cellspacing="0"
	align=center>
	<%-- //////////////////////banner --%>
	<tr>
		<td><c:import url="/banner.jsp" /></td>
	</tr>
	<%--////////////////////// mid --%>

	<tr>
		<td>

		<TABLE cellSpacing=0 cellPadding=0 width=100% border=0 align=center
			style="margin-top: 10px;">
			<TBODY>

				<tr>
					<c:if test="${not empty targetUser }">
						<td width=220 valign=top style="border: 1px solid #9CBAE0"><c:import
							url="/group/userMenu.jsp" /></td>
					</c:if>
					<td valign=top>
					<table width=100% style="argin-left: 10px; margin-top: -5px;">



						<tr>
							<td valign=top>
							<table width=100% style="overflow: auto">
								<c:if
									test="${not empty param.init && param.init eq 'userFollowing' }">
									<tr>
										<td valign=top width=100%><iframe
											onload="loadChildFrame()"
											src="/group/userFollowing.action?targetUserName=${param.targetUserName }"
											width=100% id="childFrame" height=1 scrolling="no"
											frameborder="0"></iframe></td>
									</tr>
								</c:if>
								<c:if
									test="${not empty param.init && param.init eq 'userGroups' }">
									<tr>
										<td valign=top width=100%><iframe
											onload="loadChildFrame()" src="/group/userGroups.action"
											width=100% id="childFrame" height=1 scrolling="no"
											frameborder="0"></iframe></td>
									</tr>
								</c:if>
								<c:if
									test="${not empty param.init && param.init eq 'userFavourite' }">

									<tr>
										<td valign=top width=100%><c:if
											test='${empty param.open }'>
											<iframe onload="loadChildFrame()"
												src="/group/userFavourite.action" width=100% id="childFrame"
												height=1 scrolling="no" frameborder="0"></iframe>
										</c:if> <c:if test='${not empty param.open }'>
											<iframe onload="loadChildFrame()"
												src="/group/userFavourite.action?open=${param.open}"
												width=100% id="childFrame" height=1 scrolling="no"
												frameborder="0"></iframe>
										</c:if></td>
									</tr>
								</c:if>
								<c:if
									test="${ empty param.init || param.init eq 'userMessages' }">
									<tr>
										<td valign=top width=100%><c:if
											test='${empty param.open }'>
											<iframe onload="loadChildFrame()"
												src="/group/userMessages.action?targetUserName=${param.targetUserName }"
												width=100% id="childFrame" height=1 scrolling="no"
												frameborder="0"></iframe>
										</c:if> <c:if test='${not empty param.open }'>
											<iframe onload="loadChildFrame()"
												src="/group/userMessages.action?targetUserName=${param.targetUserName }&open=${param.open}"
												width=100% id="childFrame" height=1 scrolling="no"
												frameborder="0"></iframe>
										</c:if></td>
									</tr>
								</c:if>
								<c:if
									test="${not empty param.init &&  param.init eq 'userComments' }">
									<tr>
										<td valign=top width=100%><iframe
											onload="loadChildFrame()" src="/group/userComments.action"
											width=100% id="childFrame" height=1 scrolling="no"
											frameborder="0"></iframe></td>
									</tr>
								</c:if>
							</table>
							</td>
						</tr>
					</table>
					</td>
				</tr>

			</TBODY>
		</TABLE>
		<BR>
		<BR>
		</td>
	</tr>


	<tr>
		<td><BR>
		<BR>
		<c:import url="/footer.jsp" /></td>
	</tr>
</table>
<c:if test="${not empty msg}">
	<script>alert('${msg }')</script>
</c:if>
</body>
</html>
